﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TimeTracker.Controls
{
    public partial class Session : UserControl
    {
        public DateTime StartDate
        {
            get { return this.dateTimePicker1.Value; }
            set { this.dateTimePicker1.Value = value; }
        }

        public DateTime? EndDate
        {
            get { return this.dateTimePicker2.Value; }
            set { this.dateTimePicker2.Value = value != null ? value.Value : DateTime.Now; }
        }

        public Session()
        {
            InitializeComponent();
        }
    }
}
